package ac.il.technion.cs236635.project.core.messages;

import java.io.Serializable;

public class ClusterMessage implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2505439052630100003L;
	
	private byte[] attachement;

	private ClusterMessageType type;
	
	public ClusterMessage( final byte[] attachement, final ClusterMessageType type) {
		this.type = type;
		this.attachement = attachement;
	}
	
	public byte[] getAttachement( ) {
		return attachement;
	}

	public ClusterMessageType getType() {
		return type;
	}

	public void setType(ClusterMessageType type) {
		this.type = type;
	}
}
